define([ "app", "jquery", "md5", "ecb", "services/UserService",
		"resources/UserResource", "resources/DataRecordResource" ],
		function(app) {

			var deps = [ "$scope", "$state","conferenceId","bookId","conferenceType", "$window", "$modalInstance", "$location", "$stateParams", "UserService", "UserResource", "DataRecordResource" ];

			function controller($scope, $state,conferenceId,bookId,conferenceType, $window, $modalInstance, $location, $stateParams, UserService, UserResource, DataRecordResource) {

				$scope.conferenceId =conferenceId;
				$scope.bookId =bookId;
				$scope.conferenceType =conferenceType;
				initData();
				
				function initData(){
					DataRecordResource.queryConfDetails($scope.conferenceId,$scope.bookId,$scope.conferenceType).success(function(data){
						$scope.conf=data;
		            });
				}
				
				$scope.changeDeleteImage=function (flag){
					var image =document.getElementById("changeDeleteImage");
					if(flag){
						image.src="images/delete2.png";
					}else{
						image.src="images/delete1.png";
					}
				};
				
				
				$scope.closeWind=function(){
					$modalInstance.close();
				};
			}
			controller.$inject = deps;
			return app.lazy.controller("ShowDetailController", controller);
		});
